Updating package
Adding tests for errors