bug fix in a test