Add test for string_ref::swap