added tests which manipulate the stateful session