Fixed configuration resolving JUnit test