use `document` instead of `fromList` in tests.

This allows to remove `fromList` from public API.
May be use `document` in Binary.hs as well?