The test for this should probably be extended to check we're passing the right parameter based on the spa.