I feel like this test should be testing the result of toggling the visibility to the visible state (i.e. that the list of orgs updated) rather than testing that an internal call was made between functions in the directive.