Incorporated Perl Test framework

1. Incorporated Perl Test framework.
2. Tested some .pm.