Testing that you can implement "test and set" atomically with Postgres