Adding more tests for queries and conditional updates.