Replace mock for compiler with an easier to read spy