Greatly simplify test setup

Also removed flags.