fix tests
fix a couple of bits to attain 100% coverage