test: now referenced records can be deleted