more changes for production environment

also updated the SessionsController Test to move creation of data into
indiv functions