Port session tests from the old platform