tests: clean up integer conversions