Add tests for removing dimensions and groups.