catching error test