added clearFrameFuncs method and tests.
fixed reset and use it in tests to reset state.
deleted nop variable.
added wrapper method links.
use exports.reset to reset state.