Refactor to use imperative registration for test queues to make a more explicit exmple