Update out-of-date comments and add tests.