Add 'Test' node to application create/update criteria

When 'Cb.configuration.test_resources' is enabled, add the "Test" JSON/XML node to application criteria objects.