Fixed regression on unit test