Refactor SessionsController test

This change is already merged, but I wanted to add some notes explaining some of the changes I made. Once my notes have been reviewed, this PR can be closed.
Indentation fixes