Unittest and fix for https://github.com/miyagawa/cpanfile/issues/31