Added test function for eq