Adds expect.toThrow to snippits
Fixes path problems in session code