added last test for conditional execution of appsetup code