test that atomic differences are computed right for a simple example