Fix tests for all ruby platforms