make test passes all tests

Many tests still need some work, but at least make test does not fail right now.