More informative error message for test command