Fix registry tests