Added tests for checkFieldType() and getTypeWriter().