add unit tests for atomic integer interface
check for proper creation of pthreads
Merge pull request #140 from reneme/test_atomics

TEST: Unit test for atomic.h

This testcase ensures the correct functionality of the atomic integer API in atomic.h