replace deprecated sessions functions
fixed tests
Merge pull request #38 from tkamo-kodify/master

replace deprecated sessions functions