test: extract test method style test definition patterns for method_name query