adding manual "clear" method to error class
adding Error class test