Fix incorrect 'test' statement in unit test