use more appropriate functions from Test::More in tests

When a test is failing, you get better debugging output when the "correct" Test::More function is used.