added test for this bug in test_trajectory.py
added a centering test that also restricted atom indices