Added tests.

All 317 tests pass, 100% coverage.