fixing stop and start in tests