Test particle motion in arbitrary electromagnetic fields