Test: Clearing tables in transactions