added some test code for the error class