Add test script for env_debug and write pod