Firt half of unit tests.