Pshtetc test race2

Why the logic below goes to the controller? Should be in Service