update test-binpack.c
fix array index which is lower than 0