Fixed tests and added tests.

Signed-off-by: Dennis Nobel <d.nobel@external.telekom.de>