Added extra assertions. Trying to find the problem on Travis CI.