Fix tests for Go 1.2.