add test for extraction by string