model test case, refactor