fixed tests with session