System tests

this function only differs from previous by wait condition.