refactoring test in an attempt to get it to pass on Travis