Updates layer spec with test for explicit remove function