Add testing to error classes and fix undefined method status_code for error instance in bin/berks:10