make tests reliable; unexport fields and types
Merge pull request #3 from rogpeppe/001-reliable-tests

make tests reliable; unexport fields and types