core: fixed tests