DRYed up my tests with a before hook