Former teacher pleads not guilty