fixed some unit tests
Separated persist function to allow custom persist options
Merge pull request #19 from natxo-kodify/RTF-33_config

Separated persist function to allow custom persist options
minor changes