Updates Model magic function to throw an exception upon an invalid function call to the class, updates regression test to expect the same