Fix ToolBarTest warnings 

Refactored to stop using deprecated constructors (fixes #570)