Adding more and more unit test support; getting reasonable code coverage (above 60% finally)

17 files changed