Fix tests.
Add basic tests.