Added white box tests for session.