Fix precision for MLP cost tests