Fixing with configs and testing the api