added test to confirm that writing to two different realms simultaneously works

Prompted by #1099.