Refactored testSpecApp for working automated tests and easy way to add more tests