adding sessions controller and tests