Set __code__ as well.
Tests for function __name__ and __module__ settings.