Added some tests for AppService