test: Simpler and safer exceptions test