Ensure that maven settings file is created properly in tests.