Adding some tests. Added ability to load from config files.