Fix type testab replaced by testan.
Finish testing assignIndex of abstractBlock.