Fixed test for anonymous function

Don't rely on Go internals. Just make sure the filename gets set to
something reasonable and let Go decide what that would be.