a better way to count commits
New tests for the copy functions in ua_types.c