Added an unit tests.