sem2hw2task2: Added unit tests.