task add session method and tests written