Fix stupid typos.
Add integration tests.