Clean up how assert searches for functions by name