Added tests for toolbar view [MJ-581]