user-api

updated the user api and some of the test scripts