Ended tests, implemented TOC mark, solved toc bugs, defined TOC behavior