Add test for dxpy session manager