match test error string to expected value