fix test error caused by not using variable-sized array