Added extra checks in test to try to figure out TravisCI problem.