I have a package with
Is it because it's in test and not classic src/main
No. It's because it's in the default package, and you can't import any class from the default package.
Don't, ever, put anything in the default package. Put all your classes under the standard reverse-dns structure: