added tests for hardware detected/detached events.