Added benchmarks for Linux.
Added some extra exception state checks to the sync unit test.