SWC-717: prepend end table elements.  add test that fails before change, and passes with change