Add a test for command builder delete with joins