fixed unit tests

Signed-off-by: Kai Kreuzer <kai@openhab.org>