tests and tuning for integer library