Fixed the unittest