Added unit more unit tests
Exposed the errorHandler method, errorClass property and the clearErrors method so that they can be set globally.