renamed and added tests: dynamic vs lexical --> variable vs function