Move the generic session tests in photon to share the code with others backend