tests: write tests/failures to build- instead of srcdir

All other test output goes to builddir too and moreover "make distcheck"
complains about writing to it's read-only srcdir.