Added more tests for broken databases