bar class with test