added unit test for field existance
added test for data field type