Added tests for v2 widget endpoints.