update test and fixed  typo in model