test with failure