Added test for updates with joins