add tests for incorrectly typed sessions