refactor test for travis