Added an unit test.