Fixed test-cases running on Mono