Clang test code fixes

- Initialise test vars to NULL to allow checks on error paths
- Remove extra consts around int/double const arrays