This patch adds the API tests for patch service endpoint. Change-Id: I91c1fdfd157811114eeb474246ca10b44dfad46e