Add Istanbul for test code coverage. Remove duplication found by Code Climate.