sem2hw3task3: Added unit testing.