added setDefaultModelFromClass for test purpose