Testing override of native method in a widget