unit tests working except for particles.