tests: Converted assert statements to unittest framework.

* Replaced assert x == y with self.assertEqual(x, y)

Signed-off-by: Joe MacMahon <joe.macmahon@cern.ch>