Adds tests for select_for_update.