add a test for this error case?