Tests and implementation of data constraints check for DateTime, Long,
Double and String