Add tests for operators

buffer, distinct_until_changed, scan, switch_on_next