test entity expansion