added session tests with simulated json