Thinking is behavior. The muscular habits learned in overt speech are responsible for implicit or internal speech (thought).
The best way to test a program is to test it.