Added regtests for Atom class, and a few small fixes to Atom<> class
minor test cleanups