make tests for User module DRYer
make tests for Session module DRYer