Fix broken tests caused by missing templates and collections, and missing SPOKE.instanceUrl setting