move pointEqual function to test utilities