What does your tests look like? Are they extending a TestCase class? And, if yes, what does the TestCase file look like?
My guess would be you are missing something like this in the TestCase class:
// ...
protected function getPackageProviders($app)
{
return [
YourAppServiceProvider::class,
];
}
https://laravelpackage.com/04-testing.html#directory-structure