session: move test to unittest plugin