Fixed tests and build.

Signed-off-by: Alex Tugarev <telekom@tugarev.de>