Added more tests for Application class.
Application class is now fully-tested.
Merge pull request #3 from SDisPater/application-tests

Application tests