Added test on gatindex pointer in class Atoms