added null argument checks for engine dependencies; corresponding tests