added assert on entities, change parameter id un routing must match \d+

added Functionnal test classes
last update

made modification for unit test