Unit tests

Added unit tests
Includes a bit of refactoring

Change-Id: Ic1695223984d0fdb0b8734a7b5c843914160517c
Fixing missing method

Change-Id: If29e425835c071af4fc502779429314e8f320cf3
inject network flag

Change-Id: Iad85c20397bb3919ac95354932aefadef40fc2b1
Added new key image_inject_network
Fixed configure_agent to return only if the version is not set
Fixed error with reference to the instance variable