extended test cases and failure handling