Added check of the version variable availability

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
Fixed tests

Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>