Wrote some unit tests

Change-Id: I65171236dd00e651a517e13b41d5961f8eb8148d
Signed-off-by: Alexander Wert <alexander.wert@sap.com>