Fix crashing spec in Travis