There's a standard module named Test. Check your @INC. It's probably finding the standard Test first, loads it, and then complains that it doesn't have a new() method.
Try adding use lib '.'; to your script,
or rename your module.
Comment on Re: Can't locate object method "new" via package "Test"