Restored passing normal functions as handlers.
Fixed React warnings during tests.

  React was complaining that we didn't wrap our components in a
createFactory before calling them.