/session/:sessionId/key implementation and test

modified tests a bit