Do not rely on properties order in scope tests

Fix PR #3491 as per @michaelficarra comment