Improve kernel test enviornment