Tests: Remove bad address-of and casts, some magic numbers

CR: gcc, check
Tests: More cleanup

- reduce number of casts
- move failure printfs into fail_*(, ...) variadics
- get rid of the 235886 magic number

CR: gcc, check