Having the same error for two different failures makes it harder to figure out which one of them fails.
Added a test case that reproduces the problem and verifies that it is fixed.