Added test for script or package must be set, when use own perl code and documentation

I send new patch with simple test, added documentation and unit test