Shore up extract tests.
Add code coverage script to project.

Installs istanbul locally but can't work out how to run the local
version at this stage so running the command line instead for now.