fix status and possible negative value for addr_value
fix some tests