added own file for query validator
readded missing mocks for connections for tests at the speed of light
fixed rubocop issues