Tidy up test framework
Fix bug adding new tasks when line numbers are preserved
Use single line for test params
Rename slice->edit, pre->0, post->1 so test cases line up
Test both states of the disable_filter/preserve_line_numbers flags