Fix all persistence tests

- Make all commands works
Remove deprecated features
Merge branch 'feature/cleanup'