updated test logic to improved ua widget code coverage