Add test for GenKernelPreparer().configure().

This required an integration test to easily verify behavior.  Also,
cleaned up several flake complaints to start getting a consistent style
with PEP 8 and such.