test_StandardPaths: Several bugs were fixed

1. Fixed missing throw statement when checking if the XML file exists
2. Removed unnecessary pointer when creating the MainWindow object