check_function test creator looks good
rolled check_function out to test_* files