test needle register/unregister