On dynamical systems with the specification property