Hair tests are pretty rare. Just as MacGnG said, if your in the same room (concert, whatnot), your exposed to the smoke, which gets in your hair. Explain the situation.
As for the piss test, take the advice of everyone here. Drink lots, work out, and relax! You should pass if you dont smoke heavily