Fixed crashing tests.