wrote unit test for extract offer vector