made the layer selector an explicit function
added more idiomatic midje tests