Fixing issues in test framework

- expected exception wasn't reset after each test
- test suite wasn't assessing that expected exception wasn't thrown at all