create equals function & full coverage for equals function