First batch of unit tests for layers.