Add basic tests for dealing with layer entities