test for layers.replace called from drawer