refactor grunt env for common config and add test-specific config