changed memtest command
changed the memory management policy of function codes, added tests for closures