tests: Add tests
haiku: Add closeDevice be call