error of models and unittest in user view fixed