fix tests for signed values
- change memset to fill to support signed values