add tests for role model