Add testcase for issue #6228. Improves message for MoveTargetOfBounds exception