Instead of using a timer in line 88 waiting for tombstones to be reaped on deleted, consider a wait until deleted like this:
https://github.com/basho/riak_test/blob/master/tests/secondary_index_tests.erl#L51