mocking maintoolbar a bit better in mainpanel tests
using getCount to get number of records in ActiveGeoNetworkRecordStore