Added tests of v2 plugin endpoints.