tests for failure cases