Removed front|backmatter from TOC test
Added wrapper function for shell execution