Added unit tests to config and filepath.