Test that two strings share the same memory