Better test Layer, creation moved to a private method