extract test to method process