added test for layer clearing (removeAll)