clean up tests of function environment handling.