helpers used in integration and unit tests of apis endpoints