move example4 into test