go 1.1 support
internalize common param
add test