Fix activitylog unittests