Refactored exception tests (and added missing test for the $count argument).
Fixed and enhanced test for method compare.
Prepared PEAR package version 0.3.1.