update travis, fix tests for random