Fix Bug on unit test