Unit tests for bind_by_name_helper