Adding test cases for array 'head' and 'init' functionality