updated device test, and added an entity pool example