Add istanbul code coverage for tests.
Explicitly return null if compiler is provided no child nodes.
A good start on compiler unit tests.

Still some stuff left to test but this tests the main stuff.