test with dependent destroy