Add test for update.
Implement update.
Extract TestQueryActor to another file.
Extract execution context from QueryExecutor.
Add unit test for executor.