add a trim_mode, BC distance, and a bunch of tests that fail

it's unclear why the tests are failing...sigh.