Fixed two asserts in test when raising an exception

They were inside the with, so they were never executed. (Thanks to the cov plugin for this one)
Merge pull request #26 from graffic/patch-1

Fixed two asserts in test when raising an exception