test: extract test method style test definition patterns