Refactor GetEntities Test

~600 less lines
~600 more tests

Change-Id: I06c2b1a58f4991757021aaf4b1d36c389ae9dc72
Merge "Refactor GetEntities Test"