Add tests for AppController