Completed tests for selecting array elements