Fix atomic tests to use correct device functions