Added tests to the errors package