Tests: Attach handlers during module setup and remove during teardown