Added error check to MOOSE; made new test check the error (#3178)