Fix style error in Package.__eq__
Fix errors in Entity.__hash__

- Multiple parts, were missing self
Add test for Entity parsing