add test for getting user id from session