added macro and fixed queue_items_controller_spec to work with macro