Made the tests fail correctly.
Fixed a crash.