add int8 tests and fixes