Added more tests for Application class.