tests: fixing unit testing for SQL, travis and all supported perl versions

This commits fixes :
- the perl tests for the SQL metadata
- the integration with travis-ci
- test all perl versions (5.8 to 5.18)
- fix perl 5.18 testing which has a timing issue