Updated test for multiple locks.