Fix failed unit test