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