test fix for sessions