added tests to errors package