model relationship testcase