Added tests for AppRepository