Fix broken test for faulty input