Fix bug on core tests