This test existed, but didn't notice that the task was actually added. The bug itself was fixed in #3443.
* Add test case to cover https://github.com/GothenburgBitFactory/taskwarrior/issues/3416 * Add (builtin) on-add-modify test hook and use it * TDB2::add() move hook invocation before save (#3416)