Add code coverage checks to npm test and update rule tests to have better coverage