Fixed failing test by adding mock with =false and returnvalue of array as described in KernelInterface