Refactor existing endpoint filter tests

Refactored the existing suite of endpoint filter tests including
renaming method names to aid readability and added additional
comments.

Change-Id: I98ded2632a6130e2b664e987f08499162801be6b
Merge "Refactor existing endpoint filter tests"