Fix issue 2267: appsourcecop.json is not created for testapps (#2283)