Fix forum thread and posts cound to be nullable
Fix tests