Add more complete documentation for building tests.

In response to #1121 I've added more extensive documentation around implementing tests. Both with and without a node_class.