removed unnecessary error handler in test