测试beforeModel