fix tests, fix issues, add config file