Adds a test for get-posts