Error package and testing