add tests for filtered insertions