Small bug fix in abstract widget test