add test in hideApplication and add comments