Adds REST controllers and their tests.