[WIP] Add tests for layer module

(Letting you know about this work-in-progress so we're not doing the same work twice.)