add test for equals function + fix function