add sleep before testing homepage