add istanbul coverage
test improvements, coverage