fixing test to set token in user