add a simple usage example
fixup test for perl 5.10 (found by travis)