fixing tests with lua code