Added test_weight_index_pre_post.py test.
Resolved merge conflicts.