Fix Field type check. Add initialise unit tests for Field.