add test for server side user.js