Share code between StringMB and StringNative tests