updated atomic test to the new CppAD api for atomic functions
added support for atomic functions