Add tests for Bernard scheduler