changed test.lua to work with lua 5.2.2

updated unit tests to work with the new test.lua