Solving some problems from learn to program using tests.