Better tests for return codes when creating a datapoint