[BUG] fix persistence, all unit tests. There is another issue for 'select k best' to finish