add level.get(id) function and update test appropriately