got splitPathLeaf working correctly, all tests green