extened the layer supertype and added some tests