Added a method to retrieve error / Refactored tests