Fix public room joining by making sure replaces_state never points to itself.
Fix room creation test
Fix federation test