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.
Set this data to a variable so a reference to the variable can be used instead of repeating the data.