fix typos
implement #reset and #reset!.
add a test case for Filter.
refactor.