Fix test not clearing string

Change-Id: If8581dd769a759c895135094f70b4028e1c1942c
Merge topic 'SIMPLEITK-571_AddMoreRegistrationExamples' into next

eb8c70a8 Fix test not clearing string