bug fix
added test for the last bug
yet another bug fix - return false for handlers was ignored
Merge pull request #21 from vbogdanov/master

bug fix and unit test for it