t4015: improve coverage of function context test