Fixed saveTokenID invalid userid in UserDao. Added more test cases