Fix tests and run all tests including scripted tests on Travis CI