database: fix wrong assertions in nested-transactions test
Created by: mrnugget
The transactions weren't nested before, they were concurrent. This change here makes them concurrent and also changes the assertions to reflect the new (correct?) behaviour: an outer transaction can see what's inside a nested transactions, since nested transactions are implemented with savepoints.
Test plan
- This test