fixed bug in l4 that required freshening of variables, fixed test framework to check for res files.