Fixed a typo, added a test.