Removes the cached app lookup and fix tests. I do not understand why this works.