convertor into int[] + tests