new rf te test
fixed findLoops() - find duplicities