Fix code to clear test. ref #192