Beef up unit tests for LayerImpl