Moved tests outside the app directory.
Fix imports, add discovery test runner.
Fixed test settings.
Fixed environment variables in travis config.