added refactored test and production code
Merge branch 'master' of github.com:Jarcionek/Bad-Practices-of-Testing