core: fix tests