Fix tests according to code review.
Update version to 0.8.2
Fix test for handler close.
[#1020] Fix tests for removeHandler().