cleaning up application tests and properly disposing the application object after the tests