Add basic functionality and sanity tests for Session.