Add unit test for Pleroma API app controller