Improve method notation in test examples