added a test for setInstance
removed the tests to unset the instance via setInstance in Main class