test app has two loops one with var in init and one without