test: add testlib

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5676077
2 files changed