add mock test for extraction