Update tests.lua

Fixed unit test