Replaced obsolete comparator with builtin variant.
Merge pull request #338 from fyrz/rm_obs_code_write_batch_with_index_test

Replaced obsolete comparator with builtin variant.