Add test coverage script.

Closes #219.