made test more robust and added validations on DataPoint create endpoint