Fixed strange random test

This change fixed strange-random test on travis - I hope so..