If I'm not mistaken, the sample they tested was a sample submitted before his testimony.
You are mistaken.

http://sports.espn.go.com/mlb/news/story?id=2218825

Check the timeline. It shows he took the test 2 months after testifying.