apps.js tests (bug 851575)