basic maxProduct test with generic potential passes