Verified the equals functions independently