Changed model creation in tests to a version throwing exceptions