Fix math core fit tests