Fix require for tests to work on travis