Fix the specs when running under travis-ci