first try at functionnal test of Bar class