Working AppManager and tests