Add fields tests. Inspired by go-github repo.