Revert test changes to session