adds tests for crash Prevention