fixed tests to work in travis