Completed exception test for barrier.

- This added another test to barrier class
- Fixed some tests to make them variable dependant