Add error to packagereader_test.go