Working version for current test_core testbench