TEST: Unit test for atomic.h

This testcase ensures the correct functionality of the atomic integer API in atomic.h