cpp: tiff: Tests initialise all variables and use correct types