fix 370: correct test function