Add a few more featuregroup tests and fix regression of removeLayer.

As discussed in 889136fe84ff8dbd11096824001e035bb7e95ea8