Update AppTest.java

refactor test class