Added functional unit tests
Fixed config file ref