Testing a custom layer type