update testapp and fix the model and record