refactored so test models are declared inside each test scope