Refactor of actionbar tests