remove failed code from test case. (m.dubkov)
add conditions to test case.(m.dubkov)