I couldn't find a test for this error in this PR. Could you add one?