Added sessions controller and tests