Modified Spin for unit testing

Modified spin.lua to return the unit testing results