added new Errors package and tests