Simple Golang tests of common idioms and functions