Added test for deallocated mac

* Tested deallocated mac being allocated upon reuse successfully.
* Added consistency in ipam allocated_mac when allocating from new mac and
  deallocated mac.