simple test for extract function