Functional test IPAM DB operation

Add a functional test to check that the IPAM logic is correct and
that the data stored in the DB are sane
For now there are only 3 tests, I will add more

Change-Id: I7776a50824184663abd37e210d08a63eb5519cea