Fixed model tests when building with maven