Fix the stdlib functions that fail tests