Fix forced_error test in db_test