Unique constraint should return input data not an empty instance