Fix broken tests due to changed error code

Introduced in 5246ee5c59906fc4b021ceab63f09afdedbc66b8
3 files changed