tiny corrections to the chm test code.