these tests need fixing

these tests are currently unfinished and need fixing… I was just trying
to get to the point where I have all unit tests working
more tests and fixing problems found via tests

Adding some more tests, and the tests found some other issues that are
now resolved.