test sessions controller spec.