added more tests, fixed creation of dhcp static lease if lease is already present