Added a unit test.