repaired issues revealed by LUA regression tests
updated LUA test reference revision