Add test for report-elements bug