Added nil test, but I still need to determine semantics on returning nil
Fixed the lua nil test