A good part of a developer's work is to test and debug code. Automated tests are an inestimable tool to build and maintain robust software. In this chapter, we will learn how to add automated tests to our addon modules, to make them more robust. Server side debugging techniques are also presented, allowing the developer to inspect and understand what is happening in his code.