[3818] Zwiększenie pokrycia testami.

https://gist.github.com/lukkolstx/bd8e4a7df17657f4a60d
You could make a reusable method that does that is repeated.