fix undefined function check_starting_element

A typo I guess, but now the test runs again.
Merge pull request #1117 from jtangelder/patch-1

fix undefined function check_starting_element