fixed layer behaviour and added new logger for executed bricks
added tests for new layer behaviour