adding missing test for error