TDD exercise with C