Adds tests for readonly session guard