Make errors thrown on purpose in test cases more clear.