[3818] Zwiększenie pokrycia testami.

https://gist.github.com/lukkolstx/bd8e4a7df17657f4a60d
Don't declare a variable if using it only once.