Add session unittesting with test server