Enable expensive tests

It also includes a backport of a fix for t0027 from junio/master.
All tests pass.