Fixes require calls in tests to work in travis