[lab2] Added unit tests.