New versions of set_spells and test_spells