SWC-717: prepend end table elements.  add test that fails before change, and passes with change
Merge pull request #458 from jay-hodgson/SWC-717

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