add new tests on 2-way and 3-way comparison, filters, and merge