fix usersPath and add unit tests