Integrate atomic.h in test.c