Fix minor problem in unit test