Refine test of published environment variables