FIX for TRAVIS-CI

could not figure out the reason why one assertion fails on travis ci.
This commit introduces a workaround.