Add spec for hash with no root and change spec_helper

The code coverage is set to a minimum of 98.5.

Spec added for when a hash does not have a root node, fixed a miss in
the code as well for this case.