Change harcoded condition in tests and add configuration into the pom