Build test cases for entity queries. Includes all selector and criteria types.
Fixed several bugs. getEntity now requires an options array.