tests and fixes for other int/long cases