Test for error in production