Currently configuration is fetched from the static `Configuration.getConfiguration()` method, which makes testing very difficult. Fix this.