Added test for creating new session
Update for new APIs