Added tests for v2 asset/permission endpoint.