Refactored tests

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