CA-142451: Unit tests

Refactored unit tests and defined a proper setUp method

Signed-off-by: Flavien Quesnel <flavien.quesnel@citrix.com>