use lua socket if available to time tests
Merge pull request #123 from leafo/fix2

Use lua socket if available to time tests