Make unit test warning messages consistent