Added unit testing for C and Lua