Alice added checks after tests.
Alice added checks.
Hardening suite + more checks.
Updated testsuite for 3.3
Changes
Added fixes.
Merge pull request #2 from aliceh/master

Alice hardened the code, added more tests and checks for test cases.