Added the getConfig function and a few tests.