added random test. 1% probability to fail, not sure why.