don't swallow errors on ci builds
allow either json or env config
fix test debugging