Loads a test entity by name always resetting the storage controller cache.
protected function loadEntityByName($name) {
$entity_type = 'entity_test';
// Always load the entity from the database to ensure that changes are
// correctly picked up.
entity_get_controller($entity_type)
->resetCache();
return current(entity_load_multiple_by_properties($entity_type, array(
'name' => $name,
)));
}