Completed REST API unit tests