Add unittest for TerminateTrasnfer between ranges. am: 4ea2d92b2d
am: 96fe71819a

Change-Id: I2c5ca7d4abe3e12506dfcf0d78a380bbda27edd4