added tests and creation and stuff of layers