writings tests for session