Fixed the broken unit test