Refactor some tests, also capture output from cpanm during testing...

so the console doesn't get cluttered with stuff.
Fix qw() warning.