modified AppTest