Add proper test of typing from configuratino files.

The test for type checking was not accurately reflecting the case that
causes problems.  I have udpated it so that it reads the string value
from the configuration file and correctly returns and int.
Add explicit type check to type test.