Fix spki_table_get_all and test for remove func