[#6964] Make commit mock a proper activity object

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>