sem2hw5task1: Added unit testing.