Fixed `.between.distinct`.
Added tests for `.between.distinct`.
Added more tests.