Add a test for safe_join