Wrap up REST API, wrap up mocha testing for REST API