Added some unit tests around the Error class