* Move testing input vs output into a function.

This is in prepration for testing against inputs after learning.