Unit tests for request and session state