Fix test case's dependency on chai version

Make "Query setPathValue should allow nested array value to be set" work with any version of chai. The previous implementation stopped working in chai 1.8.