#1031: rest API tests updated.