Added test_weight_index_pre_post.py test.

On branch test-weight-index-pre-post run make test.  Tests pass.