Add session controller and tests