Added test for the new bar controller, seems like addding tests to the template layer is difficult