Refactor function eunit_data:check_arity/3