Refactor helpers for the unit tests of the API
Unit tests for comments endpoints