West Indies beat Sri Lanka by 226 runs in first test