Add option to skip tests

This can be used to skip tests on platforms where the stdlib
implementation appears to have a bug (i.e. Mac OS X and fstream
putback).