Adds test for sessions

/cc @majjoha