TST: core: fix obvious bug in test