testing for match failed error