Revised tests slightly for compatibility with Mono.