Testing a simple barrier class.