Update test to pass in JS object instead of convict config