Fix test failures when trying to override prototype fields