make lighter weight and add initial test

Some environments I know I'd use this in have big memory restrictions and require perls older than 5.10.

This change spiffs that up.

It also adds some basic tests.

HTH, thanks!