Fixed two step and added test for random out of index failure
Fixed travis ci integration (hopefully)