core: fixing new test

Removed the ‘hashcode’ function so we didn’t need to import it here,
but also removed the needed type assertion.