Added check for array size multiple of processes; and parallelized test case