OR-275 fix api/messages.js midway tests after OR-250 merge
OR-275 fix api/messages.js midway tests after OR-250 merge

heroandtn3/openpaas-esn,heroandtn3/openpaas-esn,heroandtn3/openpaas-esn,chamerling/rse-chamerling,chamerling/rse-chamerling