Split dispatch sanity's validate_function test into two