Added tests to the barh