Adds refoactoring to exisiting unstable ApplicationIT test.