More tests for the list posts function.
Moved delete rest test utils into own package.