Be more specific when catching 'URL not found' error, also add test
Keep application class at TravisApplication and move it to separate file

It helps when application class needs to be reopened before creating
application