'modernize' test lua code