Fixed the failing unittest