Quiet test output and put diag() after ok() call

This shuts up Code::TidyAll when used from Test::Code::TidyAll. I also moved the diag() call to after the ok() call. This makes our internal tools happy, and I think it just makes more sense ("test failed, here's the error").