cleaned session library and test cases