test remove empty display elements