added test to cover catch portion of exception