added array_compare and test case