update for go 1.3, add test file