Test that the dispose has been done correctly
Added the done instruction for testing
Reduce the instruction count of the error eater
improve coverage of helper test.