fixed the issue on unit test