testing: expected_failure wrapper to check if an exception really does happen
testing: using expected_failure wrapper, more tests for lib, and getting rid of result _cnt attribute