Fix test.
Function to add and delete posts from Category.

Only updates structure in memory, without saving.  Saving and
regeneration can be done with other functions.

Tests are also provided.
Typo.