Bug 963009 - [Gaia][Build] Test coverage

merge these two `if` condition:
```js 
if (typeof validation_function === 'function' &&  validation_function(file))
```