Added test for rescan device hook