test.lua can now be either run as standalone or as part of the package cutorch.test()