lots of fixes with $app and testing
travis