A former Massachusetts chemist accused of faking test results at a state drug lab pleaded not guilty Wednesday to six counts of obstruction of justice in a scandal that could jeopardize thousands of drug cases.