created some unit test and did some refactoring of spotter core

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


Change-Id: I9c8eb9f179ba04c6653e3a5bf397f3d11e4bca48
Signed-off-by: Alexander Wert <alexander.wert@sap.com>
Merge pull request #53 from AlexanderWert/master

merge