Prevent tests failing in release mode. Fixes #187.

Some tests only run in DEBUG mode and were throwing a
NotSupportedException when running in release mode, giving spurious
faliures on release builds. Instead Assert.Ignore them when built in
release mode (and fix the cleanup afterwards)