Fix error/warning, make sure to pass back the return value.

Signed-off-by: Robin Getz <Robin.Getz@analog.com>
Tweak tests for updated library - to make sure the default passing condition is to pass

Signed-off-by: Robin Getz <robin.getz@analog.com>