if path is empty, return the atom
fix typo and tests
Merge pull request #13 from Frozenlock/master

If the path is empty, return the atom instead of a cursor.