fix typo and start writing unit tests for extract
more typo