write test for existing extraction method
This MR is essentially a patch collection of several issues from #17 (closed) to #25 (closed) (except for #22 (closed)).
Tests were implemented using pytest and verified by running pytest -v
.
Closes #21 (closed)