use beforeEach to set up models in test

reduces code duplication and line count.