test: write test fixtures to temp dirs instead of the repo tree (#1689)