Maxcountissue

Some tests showing behaviour in various scenarios of maxcount and linkto + a fix for prettybody/content embed levels with linkto pointing to a deleted event