Fix test if "partition" not defined in globals

Use default_partition by default for the test