Fix wrong test spec assertion and missing $filter injectable