Add index validation unit tests