This is pretty much how Spring behaves in tests.
The test context does its own thing and ignores the excludes from the main app.
JPA was still on the classpath, so Spring Test basically went “ok, let’s fire up Hibernate and a datasource”, and then it blows up because there is no database.
Once you remove the JPA dependencies, Spring stops freaking out and everything works fine.