Repair tests. refs #2235

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