tests cleanup. use assertRaises. found a few bad tests.