Fix relativeTest to fail with negative error threshold