build: improve `test-env`
lib: change Engine.add_target → Engine.add_targets
test: add `MAX_FAILURES` setting to see better
lib: put `Engine.add_targets` into one transaction