refactored recursivePaths to remove instance constraint, added test