Add more testing for config
Improve config module and it's testing