Removed test code from application.cpp.

Will submit pull request.