fix session key in test and dev environments