fixed broken specs due to adding user session check