Fixed tests to run on Mono

@Praburaj 
Why? `warningsAsErrors` is boolean....