x.ref/test: improved documentation and testing.

Change-Id: I12598ee69f82e4af4c16cd3322329ed0768b6d06
8 files changed