Fixed test that fails from time to time on Mono.