Add test for querying on context activity array elements