change endToEndTest so that expect failures are reported correctly