Fixed test, apparently it's very difficult to test random methods....