Cater for storage test being null when running background test (e.g. ClosestTargetTest).