Add test for empty element remover bug