Fix unit tests so that they all pass

Re-wrote the tests for midonet_lib becuase the new changes made
the old tests not relevant.

Signed-off-by: Ryu Ishimoto <ryu@midokura.com>