tests for dropdown events 'show' and 'hide'