sessions parsing method and tests finished