Added tests for a more flexible implementation of note extraction function.
If preceding notes extraction is to be modified, then so is its padding function. So I wrote some tests for that, but it looks like there may be a flaw in one of the existing tests as well as in the code.