Redmine#4203: test env parsing for package method