added tests for singleton and started to make config cache