tdd example from codekoala (Josh VanderLinden) article