updated testapp0 code