Added spec for sessions controller and fixed issues