changed ofject to array
edited testcases