Initial implementation of check_end_to_end.

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>