fix usersPath and add unit tests
fix test so that it doesn't depend on the array order