fixed .gitignore and added an unit-test

Change-Id: I6c86eef4438b7cefb7231c6d368de14bb1c24ed9
Signed-off-by: Marius Oehler <marius.oehler@sap.com>
Merge pull request #26 from mariusoe/master

Please pull.