before the refactoring of code - after adding both unit and functional tests