Fixed errors in existing tests.
Add bunch of new tests.