Adds equals constract tests for entity objects