Dorian helped to fix unittest issues. Datetime and session typo resolved