Added first batch of unit tests.