in reply to Re^2: starting to write automated tests
in thread starting to write automated tests

First, start with Test::More, not Test::Simple. Use the convenience functions, like so:
my $authCard = ShopDB::AuthorizeCard->new(); isa_ok( $authCard, 'ShopDB::AuthorizeCard' ); can_ok( $authCard, 'AuthorizeCard' );
Those convenience methods will save you hassle AND problems like you had. isa_ok() specifically checks definedness for you.

xoxo,
Andy