Making check for the src/tgt lengths more explicit

Unit tests pass.