Refactor tests

- Use `assert_does_not_throw`
- Add `zmq_close` and `zmq_ctx_tem` in some tests to ensure teardown...