rewrite test if useProvidedKeyPts