unit test for Application