refactored Application unit test
added Application unit test for paginated query