test arguments, deprecated as well as new mode arguments test creating a session with a new xml file using __init__() and begin(). Test raising exception when opening nonexistent file without respective mode setting.