Refactor and add tests around REST api workloads