Jasmine test private variables. Jest offers solutions like spyOn() and rewire