Fixed a typo, added unit test.